<!--
  @author tanbiao
  @since 2019-11-21 18:56:50
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>渠道产品映射</title>
</head>
<body>
<div class="layui-fluid">

    <blockquote class="layui-crumb">
        <a lay-href="/channel/list.action">渠道管理</a>&nbsp;/&nbsp;
        <zmn th:text="${obj.name}"/>&nbsp;/&nbsp;
        <a th:text="开通产品" th:lay-href="|/channel/servProductList.action?channelId=${obj.channelId}|">开通产品</a>&nbsp;/&nbsp;
        <zmn th:text="${servProduct.name}"></zmn>&nbsp;/&nbsp;
        <zmn>渠道产品映射关系</zmn>
    </blockquote>

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" class="layui-form" id="queryForm" action="/channel/product/map/list.action" lay-filter="zmn-form-filter">
            <div class="layui-form" th:include="channel/servproduct/map/_query :: query "></div>
        </form>

        <div class="layui-card-body"  id="table_body">
            <div th:replace="channel/servproduct/map/_table::table"/>
            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group">
                       <zmn th:if="${#authPermit.checkPermit('/channel/product/map/updateStatus.action')}">
                        <button class="layui-btn layui-btn-sm" lay-event="start">启用</button>
                        <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="stop">停用</button>
                     </zmn>
                    </div>
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/channel/product/map/product.action')}">
                            <a class="layui-btn layui-btn-sm layui-btn-primary" href="#" th:onclick="addEditChannelProductMap([[${vo.channelId}]], [[${vo.productId}]], 0)" >+新增</a>
                        </zmn>
                    </div>
                </div>
            </script>
        </div>

    </div>
</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]],
        items: [[${items}]]
    };

    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        channel_serv_product_map_list: "channel/servproduct/map/zmn.plat.channel.servproduct.map.list",
    }).use(['index', 'channel_serv_product_map_list']);

</script>
</body>
</html>